/**
 * 判断安卓
 */
export function isAndroid() {
  const u = navigator.userAgent;
  if (u.indexOf("Android") > -1 || u.indexOf("Linux") > -1) {
    return true;
  }
  return false;
}

/**
 * 判断设备为 ios
 */
export function isIos() {
  const u = navigator.userAgent;
  if (
    u.indexOf("iPhone") > -1 ||
    u.indexOf("iOS") > -1 ||
    u.indexOf("Mac OS") > -1
  ) {
    return true;
  }
  return false;
}
